package BehaviorModel.vistorModel;

public class VistorModelTest {

    public static void main(String[] args){
        ObjectStructure structure = new ObjectStructure();
        structure.attach(new Man());
        structure.attach(new Women());
        structure.attach(new Man());
        // 批量展示 晋级的结果
        structure.display(new Success());

        // 批量展示 降级的结果
        structure.display(new Fail());

        structure.display(new Wait());
    }
}
